﻿#region Copyright
/* © 2008 George Tsiokos, licensed under the Microsoft Reciprocal License (Ms-RL) */
#endregion
using System.Net;
using System.Threading;
using System;

namespace Comet.Net {
    public abstract class CometNetHandler {

        #region Methods (3)


        // Public Methods (3) 

        public abstract WaitHandle GetWaitHandle ();

        public abstract void HandleRequest (HttpListenerContext httpListenerContext, bool waitHandleTimedOut);

        public virtual bool RequestReceived (HttpListenerContext httpListenerContext, ref long waitHandleTimeout) {
            return true;
        }


        #endregion Methods

    }
}